﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using OA.Model.MyAttribute;

namespace OA.Model
{
    /// <summary>
    /// 基础配置
    /// </summary>
    public class BaseConfig
    {
        [Tag(TagEnum.Text, "required", "网站名称",0, 20)]
        [Display(Name = "网站名称")]
        public string SiteName { get; set; }

        [Tag(TagEnum.Text, "required", "网站网站,需要http://", 0, 200)]
        [Display(Name = "网站网站")]
        public string Url { get; set; }

         

        [Tag(TagEnum.SingleImageUpload, "required", "网站Logo", 0,100)]
        [Display(Name = "网站Logo")]
        public string Logo { get; set; }

        /// <summary>
        /// 网站底部
        /// </summary>
        [Tag(TagEnum.TextArea, "required", "网站底部",0,10000000)]
        [Display(Name = "网站底部")]
        public string Footer { get; set; }


        [Tag(TagEnum.Text, "required", "Token", 0, 32)]
        [Display(Name = "Token")]
        public string Token { get; set; }


        [Tag(TagEnum.Text, "required", "Token2", 0, 32)]
        [Display(Name = "Token2")]
        public string Token2 { get; set; }


        /// <summary>
        /// 公司职层
        /// </summary>
        [Tag(TagEnum.Text, "required", "公司职层，不同职层已逗号隔开。例如:董事长,总裁,总经理,经理,主管,普通员工", 0, 10000000)]
        [Display(Name = "公司职层")]
        public string PositionLevel { get; set; }

        /// <summary>
        /// Oss 静态资源网站
        /// </summary>        
        [Tag(TagEnum.Text, "required", "Token2", 0, 100)]
        [Display(Name = "静态资源地址")]
        public string OssUrl { get; set; }

    }

}
